package com.firmail.config;


import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@Data
@ConfigurationProperties(prefix = "code")
//@ConfigurationProperties(prefix = "spring.datasource")
public class DsProperties {

    /*@Bean
    @ConfigurationProperties(prefix = "com.example.demo")
    public People people() {
        return new People();
    }*/
    @Value("${spring.datasource.secondary.url}")
    private String url;
    @Value("${spring.datasource.secondary.username}")
    private String username;
    @Value("${spring.datasource.secondary.password}")
    private String password;
    @Value("${spring.datasource.secondary.driver-class-name}")
    private String driverClassName;

    private String androidUrl;

    private String simulatorPort;

    private String configIP;

}
